#include "log.h"
#include "log.hh"

int main()
{
#if SYSLOG_DEBUG == 0
    printf("no output\n");
#elif SYSLOG_DEBUG == 1
    printf("output to syslog\n");
#elif SYSLOG_DEBUG == 2
    printf("output to syslog and stdout\n");
#else
    printf("output to stdout\n");
#endif

    printf("LOG_LEVEL %d\n", LOG_LEVEL);
#if PRINT_FMT == 0
    printf("PRINT_FMT: '[ file@line ] text'\n");
#elif PRINT_FMT == 1
    printf("PRINT_FMT: '[ func(line) ] text'\n");
#else
    printf("PRINT_FMT: 'text'\n");
#endif

    printf("\n");

    logD("printf format: log test");
    logI("printf format: log test");
    logW("printf format: log test");
    logE("printf format: log test");

    LogD() << "steram: log test";
    LogI() << "steram: log test";
    LogW() << "steram: log test";
    LogE() << "steram: log test";

    printf("\n");

    return 0;
}

